package com.mindether.llyblog.config;

import com.mindether.llyblog.utils.IdWorker;
import com.mindether.llyblog.webfilter.BlogInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;

@Configuration
public class Config {

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }

}
